package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.entity.warehouse.PullOrderDetail;
import com.sansan.qiangji.entity.warehouse.example.PullOrderDetailExample;
import com.sansan.qiangji.mapper.warehouse.PullOrderDetailMapper;
import com.sansan.qiangji.service.inter.warehouse.PullOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PullOrderDetailServiceImpl implements PullOrderDetailService {

    @Autowired
    private PullOrderDetailMapper pullOrderDetailMapper;

    @Override
    public List<PullOrderDetail> findByProductCodeOrProductName(String productCode, String productName) {
        return pullOrderDetailMapper.findByProductCodeOrProductName(productCode, productName);
    }

    @Override
    public int insertPullOrderDetails(List<PullOrderDetail> pullOrderDetails) {
        return pullOrderDetailMapper.insertPullOrderDetails(pullOrderDetails);
    }

    @Override
    public long countByExample(PullOrderDetailExample example) {
        return pullOrderDetailMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PullOrderDetailExample example) {
        return pullOrderDetailMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer pushOrderDetailId) {
        return pullOrderDetailMapper.deleteByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int insert(PullOrderDetail record) {
        return pullOrderDetailMapper.insert(record);
    }

    @Override
    public int insertSelective(PullOrderDetail record) {
        return pullOrderDetailMapper.insertSelective(record);
    }

    @Override
    public List<PullOrderDetail> selectByExample(PullOrderDetailExample example) {
        return pullOrderDetailMapper.selectByExample(example);
    }

    @Override
    public PullOrderDetail selectByPrimaryKey(Integer pushOrderDetailId) {
        return pullOrderDetailMapper.selectByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int updateByExampleSelective(PullOrderDetail record, PullOrderDetailExample example) {
        return pullOrderDetailMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(PullOrderDetail record, PullOrderDetailExample example) {
        return pullOrderDetailMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(PullOrderDetail record) {
        return pullOrderDetailMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PullOrderDetail record) {
        return pullOrderDetailMapper.updateByPrimaryKey(record);
    }

}
